package com.myaxuan.server.permissions.impl;

import com.myaxuan.entity.permissions.Menu;
import com.myaxuan.mapper.permissions.MenuMapper;
import com.myaxuan.server.permissions.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by pc255 on 2018/1/31.
 */
@Service
public class MenuServiceImpl  implements MenuService {

	@Autowired
	private MenuMapper menuMapper;

	@Override
	public int deleteByPrimaryKey(String menuId) {
		return menuMapper.deleteByPrimaryKey(menuId);
	}

	@Override
	public int insertSelective(Menu record) {
		return menuMapper.insertSelective(record);
	}

	@Override
	public int updateByPrimaryKeySelective(Menu record) {
		return menuMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public List<Menu> findAll() {
		return menuMapper.findAll();
	}

	@Override
	public Menu selectByPrimaryKey(String MenuId) {
		return menuMapper.selectByPrimaryKey(MenuId);
	}
}
